package DataStorage;

import java.util.List;

import HibernateSQLite.java.model.Person;

public interface IPersonDAO extends IGenericDAO<Person, Long>{

	//is exist ?
	public boolean isExist(long person_id);
	public boolean isExist(Person person);
	public boolean isExist(String person_name);
	public boolean isExist(String person_name, String person_password);
	
	//get person
	public Person getPerson(long person_id);
	public Person getPerson(String person_name);
	public Person getPerson(String person_name, String person_password);
	
	//get list person
	public List<Person> getListPerson();
	
	//save person
	public void savePerson(String person_name, String person_password);
	
	//verify pass word
	public boolean verifyPassWord(String person_name,String person_password);
	//modify Pass Word
	public void modifyPassWord(String person_name,String old_person_password,String new_person_password);
}
